universal resolving algorithm

通用分辨算法